<div class="lophps index">
	<h2><?php __('Danh sách nhóm học phần');?></h2>
	<table cellpadding="0" cellspacing="0" id="tables">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('Nhóm');?></th>
			<th><?php echo $this->Paginator->sort('Tên Môn Học');?></th>
			<th><?php echo $this->Paginator->sort('Tên Giảng Viên');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($lophps as $lophp):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $lophp['Lophp']['id']; ?>&nbsp;</td>
		<td><?php echo $lophp['Lophp']['kyhieu']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($lophp['Mon']['tenMon'], array('controller' => 'mons', 'action' => 'view', $lophp['Mon']['id'])); ?>
			
		</td>
		<td>
			<?php echo $this->Html->link($lophp['Giangvien']['tenGV'], array('controller' => 'giangviens', 'action' => 'view', $lophp['Giangvien']['id'])); ?>
		</td>
		
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<!--<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Tạo Lớp HP', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Ds Môn Học', true), array('controller' => 'mons', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Mon', true), array('controller' => 'mons', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Ds Giảng Viên', true), array('controller' => 'giangviens', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Giangvien', true), array('controller' => 'giangviens', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Kết Quả', true), array('controller' => 'ketquas', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Ketqua', true), array('controller' => 'ketquas', 'action' => 'add')); ?> </li>
	</ul>
</div>-->